package com.sun.jedis.dao;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.sun.dubbo.service.RedisClusterService;

import redis.clients.jedis.JedisCluster;

@Repository
public class RedisClusterServiceImpl implements RedisClusterService{
	
	@Resource
	private JedisCluster jedisClients;
	

	@Override
	public String getKey(String key) {
		return jedisClients.get(key);
	}

	@Override
	public String setKey(String key, String value) {
		return jedisClients.set(key, value);
	}

	@Override
	public boolean exists(String key) {
		return jedisClients.exists(key);
	}

}
